﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.PopulationUI {
    import Events.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.util.*;
    import Display.*;

    public class PopulationDetailDialog extends GenericDialog {

        public function PopulationDetailDialog(){
            super("");
            this.addEventListener(DataItemEvent.CLOSE_DIALOG, this.onClosePopulationDialog, false, 0, true);
        }
        override protected function loadAssets():void{
            Global.delayedAssets.get(DelayedAssetLoader.POPULATION_ASSETS, makeAssets);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary();
            _local1["population_bg_happy"] = m_comObject.population_bg_happy;
            _local1["population_bg_neutral"] = m_comObject.population_bg_neutral;
            _local1["population_bg_sad"] = m_comObject.population_bg_sad;
            _local1["population_horizontalRule"] = m_comObject.population_horizontalRule;
            _local1["population_item"] = m_comObject.population_item;
            return (_local1);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            return (new PopulationDetailDialogView(_arg1, m_message, m_title, m_type, m_callback));
        }
        protected function onClosePopulationDialog(_arg1:DataItemEvent):void{
            UI.displayCatalog("municipal", _arg1.item.name, true, "", true, false, true);
            this.close();
        }

    }
}//package Display.PopulationUI 
